package com.qrpay.model;

public class BizException extends RuntimeException {

    private String respCode;
    private String respMessage;

    public BizException() {
    }

    public BizException(ErrorCode errorCode) {
        super(errorCode.getMessage());
        this.respCode = errorCode.getCode();
        this.respMessage = errorCode.getMessage();
    }

    public BizException(String respCode, String respMessage) {
        super(respMessage);
        this.respCode = respCode;
        this.respMessage = respMessage;
    }

    public String getRespCode() {
        return respCode;
    }

    public String getRespMessage() {
        return respMessage;
    }
}
